package br.com.lazyprogrammer.worldsoccermanager.fragments.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import br.com.lazyprogrammer.worldsoccermanager.fragments.create.SelectTeamCoachFragment;
import br.com.lazyprogrammer.worldsoccermanager.fragments.create.SelectTeamNameFragment;
import br.com.lazyprogrammer.worldsoccermanager.fragments.create.SelectTeamStadiumFragment;

/**
 * Created by Andre on 08/09/2014.
 */
public class CreateTeamAdapter extends FragmentStatePagerAdapter {

    public CreateTeamAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        switch(position) {
            case 0:
                return new SelectTeamNameFragment();
            case 1:
                return new SelectTeamStadiumFragment();
            case 2:
                return new SelectTeamCoachFragment();
        }
        return null;
    }

    @Override
    public int getCount() {
        return 3;
    }
}
